It may be desirable to package RapidSpellWebLauncher and other controls together into a single User Control, this makes component reuse even easier. For example a User Control could be created that contains RapidSpell Web and a text box, which would form a logical development unit.
UserControl.ascx (the user control)
<%@ Control Language="c#" AutoEventWireup="true" TargetSchema="http:// schemas.microsoft.com/intellisense/ie5"%> <%@ Register TagPrefix="RapidSpellWeb" Namespace="Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %> <TABLE id="Table1" style="WIDTH: 499px; HEIGHT: 229px" cellSpacing="1" cellPadding="2" width="499" align="left" border="0"> <tr> <td colSpan="2"> <asp:TextBox id="TextBox1" runat="server" TextMode="MultiLine" Height="171px" Width="363px" Columns="40" Rows="4"></asp:TextBox> <br> <RapidSpellWeb:RapidSpellWebLauncher id="RapidSpellWebLauncher1" runat="server" TextComponentName="TextBox1" RapidSpellWebPage="PopUp.aspx"> </RapidSpellWeb:RapidSpellWebLauncher> </td></tr> </TABLE>
This user control is now easily used on a regular aspx form.
<%@ Page Language="C#" %> <%@ Register TagPrefix="Acme" TagName="SpellBox" Src="UserControl.ascx" %> <html> <body style="font: 10pt verdana"> <h3>Html Text Box Spelling Control page</h3> <form id="frmMenu" runat=server> <Acme:SpellBox runat="server"/> </form> </body> </html>
The result is a form unit that is easily reusable.